<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>锚伪类</title>
    <style>
        /*表示未访问的样式*/
        a:link{
            color: blue;
        }
        /*表示已访问过后的样式*/
        a:visited{
            color:purple;
        }
        /*表示鼠标悬停时的样式*/
        a:hover{
            color: green;
        }
        /*表示鼠标按下去尚未松开时的样式*/
        a:active{
            color: red;
        }
        .c1{
            width: 200px;
            height: 100px;
            background: gray;
        }
        .c1:link{
            background: blue;
        }
        .c1:visited{
            background:purple;
        }
        .c1:hover{
            background: green;
        }
        .c1:active{
            background: red;
        }
    </style>
</head>
<body>
<a href="#">超链接</a>
<div class="c1"></div>
</body>
</html>